/*
 * @Author: Lee.mark 
 * @Date: 2018-05-06 11:47:40 
 * @Last Modified by: Lee.mark
 * @Last Modified time: 2018-05-06 19:27:36
 */

//  路由模块

// 引入express包
let express = require('express');
// 创建路由容器
let router = express.Router();
// 首页模块
let index = require('./controllers/index');
// 用户模块
let user = require('./controllers/user');

// 创建路由表
// 首页模块
router.get('/', index.showIndex)
  .get('/index.html', index.showIndex);
// 用户模块
router.get('/signin', user.showSignin).
post('/signin', user.handleSignin).
get('/signup', user.showSignup).
post('/signup', user.handleSignup).
post('/signout', user.handleSignout);
// 输出路由
module.exports = router;